package com.zpy.SmartChargeStation.iotdb.service;

import org.apache.iotdb.isession.pool.SessionDataSetWrapper;

import java.util.List;

public interface IoTDBService {

    /**
     * description: 根据自定义sql语句查询数据
     */
    SessionDataSetWrapper executeQueryStatement(String sql);


    /**
     * description: 根据时间区间(左比右开)查询数据
     */
    SessionDataSetWrapper executeRawDataQuery(List<String> path, long startTime, long endTime, long timeOut);

    /**
     * description: 存储ESP8266电流监测数据
     * @param current 电流值
     * @param timestamp 时间戳
     */
    void insertCurrentData(double current, long timestamp);

}
